package com.blb.day2;

import java.util.Random;

public class BankTest {

    public static void main(String[] args) {
        Bank bank = new Bank();
        Random random = new Random();
        for(int i = 0;i < 100;i++){
            int out = random.nextInt(bank.accounts.length);
            int in = random.nextInt(bank.accounts.length);
            int money = random.nextInt(100);
            new Thread(()->{
                bank.transfer(out,in,money);
            }).start();
        }

//        StringBuilder s;
//        StringBuffer s2;
    }
}
